<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>fourcc</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="Rvtk Reference Manual">
<link rel="up" href="ch03.html" title="libv4l2">
<link rel="prev" href="rvtk-drv-v4l2.html" title="drv-v4l2">
<link rel="next" href="rvtk-frame.html" title="frame">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Rvtk Core">
<link rel="chapter" href="ch02.html" title="Rvtk Widgets">
<link rel="chapter" href="ch03.html" title="libv4l2">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="rvtk-drv-v4l2.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Rvtk Reference Manual</th>
<td><a accesskey="n" href="rvtk-frame.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#rvtk-fourcc.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#rvtk-fourcc.description" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="rvtk-fourcc"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rvtk-fourcc.top_of_page"></a>fourcc</span></h2>
<p>fourcc — FourCC conversion utility</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rvtk-fourcc.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;rvtk/v4l2.h&gt;

#define             <a class="link" href="rvtk-fourcc.html#FOURCC:CAPS" title="FOURCC()">FOURCC</a>                              (a,b,c,d)
typedef             <a class="link" href="rvtk-fourcc.html#fourcc-t" title="fourcc_t">fourcc_t</a>;
const char*         <a class="link" href="rvtk-fourcc.html#vidFourccToString" title="vidFourccToString ()">vidFourccToString</a>                   (<a class="link" href="rvtk-fourcc.html#fourcc-t" title="fourcc_t">fourcc_t</a> code);
int                 <a class="link" href="rvtk-fourcc.html#vidFourccCalcFrameSize" title="vidFourccCalcFrameSize ()">vidFourccCalcFrameSize</a>              (<a class="link" href="rvtk-fourcc.html#fourcc-t" title="fourcc_t">fourcc_t</a> code,
                                                         int width,
                                                         int height);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="rvtk-fourcc.description"></a><h2>Description</h2>
<p>
FourCC converison utility</p>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="rvtk-fourcc.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="FOURCC:CAPS"></a><h3>FOURCC()</h3>
<pre class="programlisting">#define FOURCC(a,b,c,d) (((guint32)(a)&lt;&lt;0)|((guint32)(b)&lt;&lt;8)|((guint32)(c)&lt;&lt;16)|((guint32)(d)&lt;&lt;24))
</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fourcc-t"></a><h3>fourcc_t</h3>
<pre class="programlisting">typedef unsigned int fourcc_t;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="vidFourccToString"></a><h3>vidFourccToString ()</h3>
<pre class="programlisting">const char*         vidFourccToString                   (<a class="link" href="rvtk-fourcc.html#fourcc-t" title="fourcc_t">fourcc_t</a> code);</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A string of the given code's name or null if it is unknown.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="vidFourccCalcFrameSize"></a><h3>vidFourccCalcFrameSize ()</h3>
<pre class="programlisting">int                 vidFourccCalcFrameSize              (<a class="link" href="rvtk-fourcc.html#fourcc-t" title="fourcc_t">fourcc_t</a> code,
                                                         int width,
                                                         int height);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.10</div>
</body>
</html>
